function [tot,this]=bounce(time)
high=100
tot=high
this=high
for i=[2:time]
    this=this/2
    tot=tot+this*2
end
    
    